package nige.utils.object;

/**
 * Classe permettant la concatenation
 * de chaine de caracteres (max 5)
 * @author Nicolas Genevaux
 * 
 * 14-02-2008   Nicolas Genevaux      v.0.0.1
 */
public class Concat {
  
  /**
   * Concatene des chaines de caracteres
   * @param a1 Chaine 
   * @param a2 Chaine 
   * @param a3 Chaine 
   * @param a4 Chaine 
   * @param a5 Chaine 
   * @return ...  La chaine concatenee
   */
  public static String perform(String a1,String a2,
      String a3,String a4,String a5) {
    String ret = "";
    StringBuffer sb1 = new StringBuffer(a1);
    StringBuffer sb2 = new StringBuffer(a2);
    StringBuffer sb3 = new StringBuffer(a3);
    StringBuffer sb4 = new StringBuffer(a4);
    StringBuffer sb5 = new StringBuffer(a5);
    ret = sb1.append(sb2).append(sb3).
      append(sb4).append(sb5).toString();
    return ret;
    
  }
}

